﻿using System;
using System.Web;

namespace UDS
{
    /// <summary>
    /// This class processes some specific events occured in various stages of a http-request.
    /// </summary>
    public class Global : HttpApplication
    {
        protected void Application_BeginRequest(object sender, EventArgs e)
        {
            SiteContext.Initialize(Context);
        }

        protected void Application_PostAuthenticateRequest(object sender, EventArgs e)
        {
            SiteContext.Current.SetupIdentity();
        }
    }
}